﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;
using Database;

namespace DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy
{
    public partial class XemDanhSachLop : System.Web.UI.Page
    {
        Business.QuanLyXemDanhSachLop qlXemDSLop = new Business.QuanLyXemDanhSachLop();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDuLieu();
            }
        }
        protected void LoadDuLieu()
        {
            lvDSLop.DataSource = qlXemDSLop.LayDanhSachLopHoc();
            lvDSLop.DataBind();
        }

        protected void dataPaging_PreRender(object sender, EventArgs e)
        {
            LoadDuLieu();
        }
    }
}